/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software.
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/

package ecarx.xsf.notificationcenter.base.push.model.payload;

import android.os.Parcel;
import android.os.Parcelable;



public class PushMsgStyle implements Parcelable {

    private String type;        // "1"
    private String rank;        // "1"
    private String duration;    // "300"

    public PushMsgStyle() {

    }

    public PushMsgStyle(String type, String rank, String duration) {
        this.type = type;
        this.rank = rank;
        this.duration = duration;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.type);
        dest.writeString(this.rank);
        dest.writeString(this.duration);
    }

    protected PushMsgStyle(Parcel in) {
        this.type = in.readString();
        this.rank = in.readString();
        this.duration = in.readString();
    }

    public static final Creator<PushMsgStyle> CREATOR = new Creator<PushMsgStyle>() {
        @Override
        public PushMsgStyle createFromParcel(Parcel source) {
            return new PushMsgStyle(source);
        }

        @Override
        public PushMsgStyle[] newArray(int size) {
            return new PushMsgStyle[size];
        }
    };
}
